package com.hdax.dm.rest.service;

import com.hdax.dm.dao.scheduler.DmScheduler2Mapper;
import com.hdax.dm.entity.scheduler.DmScheduler2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/rest/scheduler2")
public class DmScheduler2RestService {

    @Autowired
    private DmScheduler2Mapper dmScheduler2Mapper;

    @PostMapping(path = "/findSeat")
    public DmScheduler2 findSeat(@RequestBody DmScheduler2 scheduler2){
        return dmScheduler2Mapper.findSeat(scheduler2);
    }
}
